package thes2sim;

public class Frame {
    
    //private int srcAddr;
    //private int destAddr;
    private PDU payload;
    private boolean servicing = false;
    private int counter;
    private int id;
    private int entTime;
    private int extTime;
    private int discTime;
    
    public Frame (PDU u, int id) {
        this.payload = u;
        this.counter = 0;
        this.id = id;
    }
    
    public void incrementCounter() {
         setCounter(getCounter() + 1);
    }
    
    public boolean isServicing() {
        return servicing;
    }

    public void setServicing(boolean servicing) {
        this.servicing = servicing;
    }

    public PDU getPayload() {
        return payload;
    }

    public void setPayload(PDU payload) {
        this.payload = payload;
    }

    public int getCounter() {
        return counter;
    }

    public void setCounter(int counter) {
        this.counter = counter;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getEntTime() {
        return entTime;
    }

    public void setEntTime(int entTime) {
        this.entTime = entTime;
    }

    public int getExtTime() {
        return extTime;
    }

    public void setExtTime(int extTime) {
        this.extTime = extTime;
    }

    public int getDiscTime() {
        return discTime;
    }

    public void setDiscTime(int discTime) {
        this.discTime = discTime;
    }
   
    
}
